<!--$Id: db_rename.so,v 11.7 2002/09/26 17:34:02 bostic Exp $-->
<!--$Id: m4.tcl,v 11.28 2004/12/16 19:13:05 bostic Exp $-->
<!--Copyright (c) 1997,2008 Oracle.  All rights reserved.-->
<!--See the file LICENSE for redistribution information.-->
<html>
<head>
<title>Berkeley DB: berkdb dbrename</title>
<meta name="description" content="Berkeley DB: An embedded database programmatic toolkit.">
<meta name="keywords" content="embedded,database,programmatic,toolkit,btree,hash,hashing,transaction,transactions,locking,logging,access method,access methods,Java,C,C++">
</head>
<body bgcolor=white>
<table width="100%"><tr valign=top>
<td>
<b><b>berkdb dbrename</b></b>
</td>
<td align=right>
<a href="../api_tcl/api_tcl.html"><img src="../images/api.gif" alt="API"></a>
<a href="../ref/toc.html"><img src="../images/ref.gif" alt="Ref"></a></td>
</tr></table>
<hr size=1 noshade>
<tt>
<b><pre>berkdb rename
	[-encrypt]
	[-encryptaes passwd]
	[-encryptany passwd]
	[-env env]
	[--]
	file
	[database
	newname]
</pre></b>
<b>Description(berkdb dbrename)</b>
<p>Renames the Berkeley DB database specified by the database name <b>file</b> and
[database] name arguments to the new name given.
If no <b>database</b> is specified,
the physical file represented by <b>file</b> is renamed.</p>
<p>No reference count of database use is maintained by Berkeley DB.  Applications
should not rename databases that are currently in use.</p>
<p>The options are as follows:</p>
<br>
<b>-encrypt</b><ul compact><li>Specify the database in an environment is encrypted with the
same password that is being used in the environment.</ul>
<b>-encryptaes passwd</b><ul compact><li>Specify the database is encrypted with the given password
using the Rijndael/AES (also known as the Advanced Encryption Standard
and Federal Information Processing Standard (FIPS) 197) algorithm.</ul>
<b>-encryptany passwd</b><ul compact><li>Specify the already existing database is encrypted
with the given password.  This option is used if the database is
known to be encrypted, but the specific algorithm used is not known.</ul>
<b>-env env</b><ul compact><li>If a <b>-env</b> argument is given, the database in the specified Berkeley DB
environment is renamed.</ul>
<b>--</b><ul compact><li>Mark the end of the command arguments.</ul>
<br>
<p>The <b>berkdb dbrename</b> command returns 0 on success, and in the case of error, a Tcl error
is thrown.</p>
</tt>
<table width="100%"><tr><td><br></td><td align=right>
<a href="../api_tcl/api_tcl.html"><img src="../images/api.gif" alt="API"></a><a href="../ref/toc.html"><img src="../images/ref.gif" alt="Ref"></a>
</td></tr></table>
<p><font size=1>Copyright (c) 1996,2008 Oracle.  All rights reserved.</font>
</body>
</html>
